package com.fc.mall.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.*;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class OrderSaleStatsInfo {

    @ApiModelProperty("今日订单总数")
    int totalOfToday;

    @ApiModelProperty("今日销售总额")
    double totalAmountOfToday;

    @ApiModelProperty("昨日销售总额")
    double totalAmountOfYesterday;

    @ApiModelProperty("近7天销售总额")
    double totalAmountOfRecent7Days;


    public static OrderSaleStatsInfo defaultValue()
    {
        return  new  OrderSaleStatsInfo(0, 0, 0, 0);
    }
}
